package com.robam.cloud.component.componentfeign.basefeign;

import com.robam.cloud.common.bean.apicenter.entity.SysConfigWithBLOBs;
import com.robam.cloud.common.bean.apicenter.entity.SysDictType;
import com.robam.cloud.common.bean.apicenter.entity.SysDictValue;
import com.robam.cloud.common.bean.restful.entity.RespMsg;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

@FeignClient(value = "api-center")
public interface FeignApiCenterBaseUtil {

    @RequestMapping(
            value = "/feign/apiCenter/getSysConfigByCsdm",
            method = RequestMethod.GET)
    RespMsg<SysConfigWithBLOBs> getSysConfigByCsdm(@RequestParam(value = "csdm") String csdm);


    @RequestMapping(
            value = "/feign/apiCenter/getAllSysConfig",
            method = RequestMethod.GET)
    RespMsg<List<SysConfigWithBLOBs>> getAllSysConfig();


    @RequestMapping(
            value = "/feign/apiCenter/getAllSysDictType",
            method = RequestMethod.GET)
    RespMsg<List<SysDictType>> getAllSysDictType();


    @RequestMapping(
            value = "/feign/apiCenter/getSysDictValueByType",
            method = RequestMethod.GET)
    RespMsg<List<SysDictValue>> getSysDictValueByType(@RequestParam(value = "dmlb") String dmlb);

}
